
This example shows how to configure capture events
==================================================


The sampling signal is set as the rising edge of an external input, toggled in software by the CPU.

At the end an IRQ is generated, the counter limited, stopped, and the application retrieves the data which is put in a buffer.

GPIO4[5] needs to be connected to an SCT input (IN), an SCT output (DONE) signals the end of the operation.
